package com.zhuizikejithreeig.cn.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;

public class MyPagerAdapter  extends FragmentStatePagerAdapter {

    private List<Fragment> mFragmentLists;

    public MyPagerAdapter(FragmentManager supportFragmentManager, List<Fragment> mFragments) {
        super(supportFragmentManager);
        mFragmentLists = mFragments;
//        notifyDataSetChanged();
    }

    @Override
    public Fragment getItem(int position) {
        return mFragmentLists.get(position);
    }

    @Override
    public int getCount() {
        return mFragmentLists.size();
    }
}
